#!/usr/bin/env python
# encoding: utf-8
# @author: Lin Han
# @contact: voldemort22@126.com
# @file: queryModel.py
# @time: 2021/4/28 18:03
# @desc:
from typing import Optional, List

from pydantic import BaseModel


class UploadHistoryPartModelForWPF(BaseModel):
    catpartAliOssAddress: str
    jsonAliOssAddress: str
    standard: Optional[str]
    version: Optional[str]
    partType: Optional[str]
    imgUrl: Optional[str]

class ListUploadHistoryPartModelForWPF(BaseModel):
    catpartAliOssAddress: List[str]
    jsonAliOssAddress: List[str]
    standard: Optional[str]
    version: Optional[str]
    partType: Optional[str]

class UploadHistoryPartModel(BaseModel):
    catpartAliOssAddress: List[str]
    jsonAliOssAddress: Optional[List[str]]
    # imgUrl: Optional[str]
    standard: Optional[str]
    version: Optional[str]


class HistoryPartImageModel(BaseModel):
    number: str
    imgUrl: str